﻿using System.Collections;
using NUnit.Framework;

namespace Dgg.LearnYourTools.NUnit.B_DataTesting.a_TestCase
{
	[TestFixture]
	public class _009_ExtraFixtureSources
	{
		[Test, TestCaseSource(typeof(DataProvider), "SomeData")]
		public void TestCaseSource_WithExternalDataProviders(int i, int j, string result)
		{
			Assert.AreEqual(result, (i + j).ToString());
		}
	}

	internal class DataProvider
	{
		public IEnumerable SomeData = new object[]
		{
			new object[] {1, 2, "3"},
			new object[] {2, 2, "4"},
		};
	}
}
